package es.us.isa.jdbl.domain.biblio;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import es.us.isa.jdbl.domain.Member;

@Entity
@Table( name = "biblio_contributor_data", catalog = "webisa")
public class Contributors {
	@Id
	private int cid;

	private String name;
	
	private String firstname;
	
	private String lastname;
	@OneToOne
	@JoinTable(name="biblio_contributor_data", catalog = "webisa",
			joinColumns=@JoinColumn(name="cid"),
			inverseJoinColumns=@JoinColumn(name="drupal_uid", referencedColumnName="uid"))
	private Member memberProfile;

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public Member getMemberProfile() {
		return memberProfile;
	}

	public void setMemberProfile(Member memberProfile) {
		this.memberProfile = memberProfile;
	}
}
